if(${TARGET_COMMAND} MATCHES "ws63-liteos-xts")
    set(COMPONENT_LIST "begetutil" "devattest_sdk" "hal_token_static" "hilog_lite_static" "huks_test_common" "module_ActsBootstrapTest" "module_ActsSamgrTest" "samgr_adapter" "bootstrap" "fsmanager_static" "hal_update_static" "hilog_static" "inithook" "module_ActsDeviceAttestTest" "module_ActsUpdaterFuncTest" "samgr_source"
            "broadcast" "hal_file_static" "hctest" "hiview_lite_static" "init_log" "module_ActsDfxFuncTest" "native_file" "udidcomm"
            "cjson_static" "hal_sys_param" "hichainsdk" "hota" "init_utils" "module_ActsHieventLiteTest" "param_client_lite"
            "devattest_core" "hal_sysparam" "hievent_lite_static" "huks_3.0_sdk"  "module_ActsHuksHalFunctionTest" "samgr"
            "blackbox_lite"  "hidumper_mini")
elseif(${TARGET_COMMAND} MATCHES "ws63-liteos-app")
set(COMPONENT_LIST "begetutil"   "hilog_lite_static" "samgr_adapter" "bootstrap" "fsmanager_static" "hal_update_static" "hilog_static" "inithook"   "samgr_source"
        "broadcast" "hal_file_static"   "init_log"  "native_file" "udidcomm"
        "cjson_static" "hal_sys_param" "hichainsdk" "hota" "init_utils"  "param_client_lite"
        "hiview_lite_static" "hal_sysparam" "hievent_lite_static" "huks_3.0_sdk"   "samgr" "blackbox_lite" "hal_iothardware" "wifiservice"
        "hidumper_mini"

        # "hello_world"
        # "my_app" "my_driver" "my_library"
        # "kvstore_demo"
        # "file_demo"
        # "thread_demo"
        # "feature_template"
        # "delay_demo"
        # "timer_demo"
        # "mutex_demo"
        # "semaphore_demo"
        # "message_demo"
        # "led_demo"
        # "hello_world" "led_demo"
        # "gpio_input_demo"
        #"pwm_demo"
        #"Motor"
        #"waterliu"
        #"sle_client"
        #"sle_server"
        "water_sle_client"
        #"water_sle_server"
        # "adc_demo"
        # "i2c_demo"
        #"oled_demo"
        #"oled_water"
        # "oled_test"
        #"oled_ssd1306"
        #"environments"
        #"led_d"
        # "qrcode_demo" "qrcode_gen" "oled_ssd1306"
        # "uart_demo"
        # "uart_p2p"
        # "json_demo"
        # "hard_random_gen"
        # "cipher_test" "easy_cipher"
        # "wifi_demo"
        # "wifi_test" "easy_wifi"
        # "tcpclient" "oled_ssd1306" "easy_wifi"
        # "tcpserver" "oled_ssd1306" "easy_wifi"
        # "udpclient" "oled_ssd1306" "easy_wifi"
        # "udpserver" "oled_ssd1306" "easy_wifi"
        # "ntp_demo" "oled_ssd1306" "easy_wifi"
        # "soft_rtc_test" "oled_ssd1306" "easy_wifi" "soft_rtc"
        # "rtc_demo" "oled_ssd1306" "easy_wifi"
        # "http_client_demo" "oled_ssd1306" "easy_wifi"
        # "http_client_test" "oled_ssd1306" "easy_wifi" "easy_http_client"
        # "httpd_test" "oled_ssd1306" "easy_wifi" "easy_httpd"
        # "paho-embed-mqtt3c" "paho-embed-mqtt3cc"
        # "mqtt_demo" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "easy_wifi"
        # "mqtt_light" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "easy_wifi"
        # "mqtt_light_sensor" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "easy_wifi"
        # "mqtt_human_sensor" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "easy_wifi"
        # "mqtt_gas_sensor" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "easy_wifi"
        # "mqtt_temp-humi_sensor" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "easy_wifi"
        # "mqtt_oled" "paho-embed-mqtt3c" "paho-embed-mqtt3cc" "oled_ssd1306" "easy_wifi"
        # "radar_demo"
        # "radar_led"
        # "radar_linger_warn"
        # "sle_demo_1v1"
        # "sle_demo_1vn" "oled_ssd1306"
        # "sle_uart_demo_1v1"
        # "sle_uart_demo_1vn" "oled_ssd1306"
        # "sle_wifi_coexist" "oled_ssd1306" "easy_wifi"
        # "sle_wifi_radar_coexist" "oled_ssd1306" "easy_wifi"
        # "sle_set_wifi" "oled_ssd1306" "easy_wifi"
        # "sle_light_control"
        # "sle_multi_point_gather" "oled_ssd1306"
        # "sle_hybrid_mode"
        # "sle_hybrid_demo" "oled_ssd1306"
        # "sle_hybrid_n_mode" "oled_ssd1306"
        # "sle_hybrid_n_demo" "oled_ssd1306"
        # "sle_dicsoss" "oled_ssd1306" "easy_wifi" "easy_httpd" "paho-embed-mqtt3c" "paho-embed-mqtt3cc"
        # "sle_radar_surveillance" "oled_ssd1306" "easy_wifi" "easy_httpd" "paho-embed-mqtt3c" "paho-embed-mqtt3cc"
        # "sle_one_to_many"
        # "sle_delay_optimize" "oled_ssd1306"
        # "sle_throughput_optimize" "oled_ssd1306"
        # "sle_announce_customize"
        # "sle_starBeacon" "oled_ssd1306" "easy_wifi" "easy_httpd" "easy_cipher"
        # "sle_starBeacon_test" "oled_ssd1306" "easy_cipher"
        )
endif()


foreach(COMPONENT ${COMPONENT_LIST})
    set(COMPONENT_NAME ${COMPONENT})
    if (NOT ${COMPONENT_NAME} IN_LIST TARGET_COMPONENT)
    continue()
    endif()
    set(LIBS ${BIN_DIR}/${CHIP}/libs/ohos/${TARGET_COMMAND}/lib${COMPONENT_NAME}.a)
    set(WHOLE_LINK true)
    build_component()
    install_sdk(${BIN_DIR}/${CHIP}/libs/ohos/${TARGET_COMMAND} "*.a")
endforeach()
